// 编程范式：
// 函数式编程
// 面向对象编程

// 原型
// 原型链


class Person {
    name: string
    age: number

    constructor(name: string, age: number) {
        this.name = name
        this.age = age
    }
    eating() {
        console.log(this.name + 'eating');

    }
}

const p = new Person('a', 12)
console.log(p.name);
console.log(p.age);
p.eating()

export { }